package com.bw.mallshop.login;

import com.blankj.utilcode.util.LogUtils;
import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.mvvm_common.mvvm.viewmodel.BaseViewModel;

import androidx.databinding.ObservableField;

public class LoginViewModel extends BaseViewModel<LoginModel> {

    public ObservableField<String>name = new ObservableField<>();
    public ObservableField<String>pwd = new ObservableField<>();

    @Override
    protected void result(BaseEntity entity) {

    }

    public void loginClick(){
        LogUtils.e("loginClick():"+name);
        LogUtils.e("loginClick():"+pwd);
        m.login(name.get(),pwd.get());

    }

}
